<?php
include('../includes/definer.php');
include('../bootstrap.php');
$imgArray = explode('/', $_POST['src']);
if ($publicacion = Doctrine::getTable('publicacion')->findOneByThumb(end($imgArray))) {
    $publicacion->thumb= '';
    $publicacion->save();
}
@unlink(INC.$_POST['src']);
@unlink(INC.str_replace('thumb/', '', $_POST['src']));
?>